package com.kingint.web.admin.serve.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kingint.mbg.dto.CheckRoom.CheckRoomQueryParam;
import com.kingint.mbg.ser.entity.SerCheckRoom;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>
 * 查房工单详情表 服务类
 * </p>
 *
 * @author wxh
 * @since 2020-12-24
 */
public interface SerCheckRoomService extends IService<SerCheckRoom> {

    /**
     * 创建并完成查房工单
     * @param serCheckRoom
     * @return
     */
    boolean addCheckRoomOder(SerCheckRoom serCheckRoom);

    /**
     * 获取所有查房工单
     * @return
     */
    IPage<SerCheckRoom> getCheckRoomOder(CheckRoomQueryParam serCheckRoom, Integer pageNum, Integer pageSize);

    /**
     * 完成工单
     * @return
     */
    boolean complete(SerCheckRoom serCheckRoom);

    /**
     * 根据id查询详情
     * @param id
     * @return
     */
    SerCheckRoom getonebyid(Integer id);
}
